package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.Comment;
import com.tanhua.dubbo.server.pojo.Publish;
import com.tanhua.dubbo.server.vo.PageInfo;

/**
 * * @title: QuanZiApi
 *
 * @Author Philcan
 * @Date: 2021/8/11 19:21
 * @Version 1.0
 */
public interface QuanZiApi {
    PageInfo<Publish> queryPublishList(Long userId, Integer page, Integer pageSize);

    String savePublish(Publish publish);

    PageInfo<Publish> queryRecommendPublishList(Long userId, Integer page, Integer pageSize);

    Publish queryPublishById(String id);

    Boolean likeComment(Long userId, String publishId);

    Boolean disLikeComment(Long userId, String publishId);

    Long queryLikeCount(String publishId);

    Boolean queryUserIsLike(Long userId, String publishId);

    Boolean loveComment(Long userId, String publishId);

    Boolean disLoveComment(Long userId, String publishId);

    Long queryLoveCount(String publishId);

    Boolean queryUserIsLove(Long userId, String publishId);

    PageInfo<Comment> queryCommentList(String publishId, Integer page, Integer pageSize);

    Boolean saveComment(Long userId, String publishId, String content);

    Long queryCommentCount(String publishId);

    PageInfo<Comment> queryLikeCommentListByUser(Long userId, Integer page, Integer pageSize);

    PageInfo<Comment> queryLoveCommentListByUser(Long userId, Integer page, Integer pageSize);

    PageInfo<Comment> queryCommentListByUser(Long userId, Integer page, Integer pageSize);

    PageInfo<Publish> queryAlbumList(Long userId, Integer page, Integer pageSize);
}
